public class Test5 {
    public static void main(String[] args) {
        int sum = 0;
        for (int i = 1; i <= 10; i++) {
            sum += money(i);
        }
        System.out.println(sum);
    }

    public static int money(int n) {
        if (n == 1) {
            return 1;
        } else {
            return money(n - 1) * 2;
        }
    }
}
